﻿
/* 
 本类由PWMIS 实体类生成工具(Ver 4.1)自动生成
 http://www.pwmis.com/sqlmap
 使用前请先在项目工程中引用 PWMIS.Core.dll
 2012/3/30 17:59:35
*/

using System;
using PWMIS.Common;
using PWMIS.DataMap.Entity;

namespace PrjCmd.Entity
{
    [Serializable()]
    public class Products : EntityBase
    {
        public Products()
        {
            TableName = "Products";
            EntityMap = EntityMapType.Table;
            //IdentityName = "标识字段名";
            IdentityName = "ProductID";

            //PrimaryKeys.Add("主键字段名");
            PrimaryKeys.Add("ProductID");


        }


        protected override void SetFieldNames()
        {
            PropertyNames = new string[] { "ProductID", "ProductName", "CategoryID", "Unit", "UnitPrice", "Remark", "Quantity" };
        }



        /// <summary>
        /// 
        /// </summary>
        public System.Int32 ProductID
        {
            get { return getProperty<System.Int32>("ProductID"); }
            set { setProperty("ProductID", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.String ProductName
        {
            get { return getProperty<System.String>("ProductName"); }
            set { setProperty("ProductName", value, 50); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32 CategoryID
        {
            get { return getProperty<System.Int32>("CategoryID"); }
            set { setProperty("CategoryID", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.String Unit
        {
            get { return getProperty<System.String>("Unit"); }
            set { setProperty("Unit", value, 10); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Decimal UnitPrice
        {
            get { return getProperty<System.Decimal>("UnitPrice"); }
            set { setProperty("UnitPrice", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.String Remark
        {
            get { return getProperty<System.String>("Remark"); }
            set { setProperty("Remark", value, 2147483647); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32 Quantity
        {
            get { return getProperty<System.Int32>("Quantity"); }
            set { setProperty("Quantity", value); }
        }


    }
}
